package com.xm.web.exception;

import lombok.Getter;

/**
 * @author yousj
 * @version 1.0.0
 * @since 2021/8/20 10:05
 */
@Getter
public class BusinessException extends RuntimeException {

    private Integer code = 9001;
    private String message;

    public BusinessException(Integer code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public BusinessException(String message) {
        super(message);
        this.message = message;
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
        this.message = message;
    }
}
